package com.gimi.cloud.bbp.dao.dao.stroe;

import com.gimi.cloud.bbp.dao.dao.sys.BaseDao;
import com.gimi.cloud.bbp.dao.myMapper.MyMapper;
import com.gimi.cloud.bbp.dao.myMapper.core.query.QueryParam;
import com.gimi.cloud.bbp.dao.myMapper.core.query.QueryParamProvider;
import com.gimi.cloud.bbp.dto.prod.EcProdCategoryDTO;
import com.gimi.cloud.bbp.dto.store.MerchantRangeDTO;
import com.gimi.cloud.bbp.entity.store.MerchantRangeEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * Created by wangwei on 2017/12/20.
 */
@Mapper
public interface MerchantRengeDao extends MyMapper<MerchantRangeEntity>,BaseDao{

    @SelectProvider(type = QueryParamProvider.class, method = "selectListBySql")
    List<MerchantRangeDTO> getMerchantRangeListByCondition(QueryParam queryParam);

    @SelectProvider(type = QueryParamProvider.class, method = "selectListBySql")
    List<EcProdCategoryDTO> getProCategoreListByCondition(QueryParam queryParam);
}
